<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'ur-library-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">加<span class="required">*</span>为必填项.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'name'); ?>
	</div>

	<div class="row">
		<label><b>地点&nbsp;*</b></label>
		<?php 
		if($model->city!=NULL)	echo SiteHelper::ajaxAreaSelect($model->city);
		else echo SiteHelper::ajaxAreaSelect();
		?>
	</div>
	

	


	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? '添加' : '更新'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->
